($platforms[0].items | map({(.string): .display_name}) | add) as $platform_names |
(["| CVE ID        | Platforms |",
  "| ------------- | --------- |"] +
 [.cves[] | 
  "| \(.id)  | \((.platforms | map($platform_names[.] // .)) | join(", ")) |"]) | 
.[]